package cn.laixueit.mapper;

import cn.laixueit.common.Page;
import cn.laixueit.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    public List<User> findAll();
    public User findById(Integer id);
    public List<User> findLikeName(String username);
    public List<User> findLikeName2(String username);
    public List<User> findLikeName3(String username);

    public int add(User user);

    public int update(User user);

    public int delete(Integer id);

    public List<User> findByNameAndSex(User user);

    public List<User> selectPage(Page page);


    public List<User> selectPage2(Map map);


}
